{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--左侧导航结束-->
      <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:34% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "学年名称"; }
			#mytable td:nth-of-type(2):before { content: "学期名称"; }
			#mytable td:nth-of-type(3):before { content: "操作"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">学期工作周历表</p>
                </div>
				 <div class="box-body">
				    <div class="col-md-3 form-group" style="padding:0;">
						  <label for="inputPassword3" class="col-sm-3 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
							   学年：
						  </label>
						  <div class="input-group col-md-9 col-xs-12">
							   <input type="text" class="form-control" value="{%$semester_xname%}" name="semester_xname" >
						  </div> 
				    </div>
					
					<div class="col-md-1 col-xs-12">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
                <div class="box-body">
                     <table class="table table-bordered"  id="mytable">
                                <thead>
                                    <tr>
                                        <td>学年名称</td>
                                        <td>学期名称</td>
										<td width="150">操作</td> 										
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$semester_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.semester_xname%}</td>
                                        <td>{%$value.semester_name%}</td>										
										<td>
										      <a href="index.php?a=arrange.semesterweeklist&semester_id={%$value.semester_id%}" class="btn btn-success btn-xs">查看工作周历表</a>
										</td>
                                    </tr>	
                               {%/foreach%}
                            </tbody>
                        </table>
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
